<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
	<title>Smart Ticket</title>
</head>
<body>

<!--  Title -->
<div>
	<jsp:include page="title.jsp"></jsp:include>
</div>

<div>
	<a href="/join.jeju">회원가입</a>
</div>

<!--  Login -->
<div>
	<h1>Login Area</h1>
</div>

<!--  Profile -->
<div>
	<a href="profile">프로필 보기</a>
</div>

<!-- Ticket List Area -->
<div>
	<h1>Ticket List Area</h1>
</div>

<div>
	<c:forEach items="${tickets}" var="ticket" >
		ticket.id : ${ticket.id}<br>
		ticket.sight_id : ${ticket.sight_id }<br>
		ticket.goal_count : ${ticket.goal_count }<br>
		ticket.discount_rate : ${ticket.discount_rate }<br>
		ticket.price : ${ticket.price }<br>
		ticket.deadline : ${ticket.deadline} <br>
		<a href="/sightInfo?id=${ticket.sight_id }&ticket_id=${ticket.id }">자세히 보기</a><br><br>
	</c:forEach>
</div>

</body>
</html>
